package com.xhs.hawaii.payment.mapper;

import com.xhs.hawaii.payment.mapper.query.BatchPaymentQuery;
import com.xhs.hawaii.payment.model.BatchPayment;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @author wzhao1
 * @version 1.0
 * @since 2018/1/24
 */
public interface BatchPaymentMapper {

    /**
     * 分页查询批量付款记录
     * @param query
     * @param pageNum
     * @param pagSize
     * @return
     */
    List<BatchPayment> queryBatchPaymentByPage(@Param("query")BatchPaymentQuery query, @Param("pageNum") int pageNum, @Param("pageSize") int pagSize);

    /**
     * 插入批量付款记录
     * @param batchPayments
     * @return
     */
    int insertBatchPayments(@Param("batchPayments") List<BatchPayment> batchPayments);

    int updateStatus(@Param("batchPayments") List<BatchPayment> batchPayments);
}
